package fkti1381bkh;

public class Root {
	private char a; 
	private int b;
	private Root left;
	private Root right;
	/**
	 * Set name.
	 * @param name new name
	 */
	public void seta(char name){a=name;}
	/**
	 * Get name.
	 * @return Name
	 */
	public char geta(){return a;}
	/**
	 * Set establish(hr-hl).
	 * @param num establish
	 */
	public void setb(int num){b=num;}
	/**
	 * Get establish(hr-hl).
	 * @return establish
	 */
	public int getb(){return b;}
	/**
	 * Set left son.
	 * @param left new left son
	 */
	public void setLeft(Root left){this.left=left;}
	/**
	 * Get left son.
	 * @return left son.
	 */
	public Root getLeft(){return left;}
	/**
	 * Set right son.
	 * @param right New right son.
	 */
	public void setRight(Root right){this.right=right;}
	/**
	 * Get right son.
	 * @return right son.
	 */
	public Root getRight(){return right;}
}
